﻿using System;
using System.ComponentModel.DataAnnotations;

namespace MM.Data.Entity
{
    [Table("JournalPayment")]
    public class JournalPayment
    {
        [Key]
        public int Id { get; set; }
        [Required]
        public DateTime DateTime { get; set; }
        [Required]
        public decimal Amount { get; set; }
        [Required]
        public int CurrencyId { get; set; }
        [ForeignKey("CurrencyId")]
        public Currency Currency { get; set; }
        [Required]
        public int OperationTypeId { get; set; }
        [ForeignKey("OperationTypeId")]
        public virtual OperationType OperationType { get; set; }
        [StringLength(250)]
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }
        [Required]
        public int PriorityId { get; set; }
        [ForeignKey("PriorityId")]
        public virtual Priority Priority { get; set; }
    }
}
